
enum Type {ONEHOP_PHYSICAL, TWOHOP_PHYSICAL, LOGICAL};

public class rtEntry{

	int nextHop;
	int pathId;
	int end1;
	int end2;
	int  type;
	
	public static final int ONEHOP_PHYSICAL = 0;
	public static final int TWOHOP_PHYSICAL = 1;
	public static final int LOGICAL = 2;
	public static final int EMPTY = 3;
	 
	public rtEntry(){
		nextHop = -1;
		pathId = -1;
		end1 = -1;
		end2 = -1;
		type = rtEntry.EMPTY;
	}
	
	public rtEntry(int nh, int id, int e1, int e2, int t){
		nextHop = nh;
		pathId = id;
		end1 = e1;
		end2 = e2;
		type = t;
	}

    public void printMe(){
	String neighborType ;
	if (this.type == 0)
	    neighborType = "ONEHOP_PHYSICAL";
	else if (this.type == 1)
	    neighborType = "TWOHOP_PHYSICAL";
	else if (this.type == 2)
	    neighborType = "LOGICAL";
	else
		neighborType = "EMPTY";
	
	System.out.println(nextHop + "\t" + pathId + "\t" + end1 + "\t" + end2 + "\t" + neighborType + "\n");
    }
}
